// +---------------------
// | 系统字典
// +---------------------
import { request } from "@/common/request";

/** 系统字典查询 */
export function getSysDictByName(name) {
  return request({
    url: "/kingon-system/dict/data/type/" + name,
    method: "get",
  });
}

// 业务字典查询
export function getBizDictByName(data) {
  return request({
    url: "/kingon-system/dict-biz/dictionary",
    method: "get",
    data: data,
  });
}

// 客户类型数据（？）
export function getCustomerType(data: any) {
  return request({
    url: "/kingon-customer/customerType/children",
    method: "get",
    data,
  });
}

// 客户类型数据下拉（？）
export function getCustomerTypeSelect(data: any) {
  return request({
    url: "/kingon-customer/customerType/select",
    method: "get",
    data,
  });
}
